Integrand size = 29, antiderivative size = 196 \[ \int \frac {\sqrt {3+b \sin (e+f x)}}{\sqrt {c+d \sin (e+f x)}} \, dx=\frac {2 \sqrt {c+d} \operatorname {EllipticPi}\left (\frac {b (c+d)}{(3+b) d},\arcsin \left (\frac {\sqrt {3+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {3+b \sin (e+f x)}}\right ),\frac {(3-b) (c+d)}{(3+b) (c-d)}\right ) \sec (e+f x) \sqrt {-\frac {(b c-3 d) (1-\sin (e+f x))}{(c+d) (3+b \sin (e+f x))}} \sqrt {\frac {(b c-3 d) (1+\sin (e+f x))}{(c-d) (3+b \sin (e+f x))}} (3+b \sin (e+f x))}{\sqrt {3+b} d f} \]
[Out]
Time = 0.07 (sec) , antiderivative size = 198, normalized size of antiderivative = 1.01, number of steps used = 1, number of rules used = 1, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.034, Rules used = {2890} \[ \int \frac {\sqrt {3+b \sin (e+f x)}}{\sqrt {c+d \sin (e+f x)}} \, dx=\frac {2 \sqrt {c+d} \sec (e+f x) (a+b \sin (e+f x)) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (\sin (e+f x)+1)}{(c-d) (a+b \sin (e+f x))}} \operatorname {EllipticPi}\left (\frac {b (c+d)}{(a+b) d},\arcsin \left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right ),\frac {(a-b) (c+d)}{(a+b) (c-d)}\right )}{d f \sqrt {a+b}} \]
[In]
[Out]
Rule 2890
Rubi steps \begin{align*} \text {integral}& = \frac {2 \sqrt {c+d} \operatorname {EllipticPi}\left (\frac {b (c+d)}{(a+b) d},\arcsin \left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right ),\frac {(a-b) (c+d)}{(a+b) (c-d)}\right ) \sec (e+f x) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (1+\sin (e+f x))}{(c-d) (a+b \sin (e+f x))}} (a+b \sin (e+f x))}{\sqrt {a+b} d f} \\ \end{align*}
Time = 0.24 (sec) , antiderivative size = 192, normalized size of antiderivative = 0.98 \[ \int \frac {\sqrt {3+b \sin (e+f x)}}{\sqrt {c+d \sin (e+f x)}} \, dx=\frac {2 \sqrt {c+d} \operatorname {EllipticPi}\left (\frac {b (c+d)}{(3+b) d},\arcsin \left (\frac {\sqrt {3+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {3+b \sin (e+f x)}}\right ),-\frac {(-3+b) (c+d)}{(3+b) (c-d)}\right ) \sec (e+f x) \sqrt {\frac {(b c-3 d) (-1+\sin (e+f x))}{(c+d) (3+b \sin (e+f x))}} \sqrt {\frac {(b c-3 d) (1+\sin (e+f x))}{(c-d) (3+b \sin (e+f x))}} (3+b \sin (e+f x))}{\sqrt {3+b} d f} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 11.95 (sec) , antiderivative size = 222819, normalized size of antiderivative = 1136.83
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {3+b \sin (e+f x)}}{\sqrt {c+d \sin (e+f x)}} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {\sqrt {3+b \sin (e+f x)}}{\sqrt {c+d \sin (e+f x)}} \, dx=\int \frac {\sqrt {a + b \sin {\left (e + f x \right )}}}{\sqrt {c + d \sin {\left (e + f x \right )}}}\, dx \]
[In]
[Out]
\[ \int \frac {\sqrt {3+b \sin (e+f x)}}{\sqrt {c+d \sin (e+f x)}} \, dx=\int { \frac {\sqrt {b \sin \left (f x + e\right ) + a}}{\sqrt {d \sin \left (f x + e\right ) + c}} \,d x } \]
[In]
[Out]
\[ \int \frac {\sqrt {3+b \sin (e+f x)}}{\sqrt {c+d \sin (e+f x)}} \, dx=\int { \frac {\sqrt {b \sin \left (f x + e\right ) + a}}{\sqrt {d \sin \left (f x + e\right ) + c}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {3+b \sin (e+f x)}}{\sqrt {c+d \sin (e+f x)}} \, dx=\int \frac {\sqrt {a+b\,\sin \left (e+f\,x\right )}}{\sqrt {c+d\,\sin \left (e+f\,x\right )}} \,d x \]
[In]
[Out]